-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update facerec_from_webcam_faster.py #1498
base: master
Are you sure you want to change the base?
Conversation
Use cv2.cvtColor to convert BGR to RGB
Change also fixed crashing on my computer. Would be nice to get this added. |
import face_recognition This is a demo of running face recognition on live video from your webcam. It's a little more complicated than theother example, but it includes some basic performance tweaks to make things run a lot faster:1. Process each video frame at 1/4 resolution (though still display it at full resolution)2. Only detect faces in every other frame of video.PLEASE NOTE: This example requires OpenCV (the
|
Use cv2.cvtColor to convert BGR to RGB. The
small_frame[:, :, ::-1]
method will crash the program.